﻿using SCG.General;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TTEngine.Rooms
{
    public class ArtGallery : PatternRoom
    {
        //clone
        public override Room Clone()
        {
            return new ArtGallery();
        }

        //make it rather small
        public override string PatternMap
        {
            get
            {
                return GeneratePatternMap(4, 6);
            }
        }

        //put paintings on the walls and some dressing in the room
        public override void PostProcessing()
        {
            int paintings = Globals.RandomIntFromTo(4, 8);
            List<SCGPoint> pts = Level.CreatePointCluster(paintings, CenterX, CenterY, 4, 2, Globals.TERRAIN_WALL);
            foreach (SCGPoint pt in pts)
            {
                Painting p = new Painting();
                Level.AddObjectToMap(p, pt.X, pt.Y);
            }

            pts = Level.CreatePointCluster(3, CenterX, CenterY, 3, 3, Globals.TERRAIN_FLOOR);
            foreach (SCGPoint pt in pts)
            {
                MapObject d = Level.Theme.GenerateDressing();
                Level.AddObjectToMap(d, pt.X, pt.Y);
            }
        }
    }
}
